package com.aoip.telemetry.telemetry.entity.frame;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * @author chenbai
 * @version 1.0
 * @date 2021/10/4 14:56
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
@TableName("frame_structure")
@ApiModel(description = "帧结构实体")
public class FrameStructureEntity {

    @TableField(value = "protocol_name")
    @ApiModelProperty("协议名称，如水文、水文衍生之农灌、地下水、水资源等")
    private String protocolName;

    @TableField(value = "sort_num")
    @ApiModelProperty("同一协议中的排序")
    private String sortNum;

    @TableField(value = "identifier_name")
    @ApiModelProperty("标识符名称")
    private String identifierName;

    @TableField(value = "field_name")
    @ApiModelProperty("标识符对应的值字段名称")
    private String fieldName;

    @TableField(value = "number_bytes_transmitted")
    @ApiModelProperty("传输字节数（字节）。-1表示不定长")
    private int numberBytesTransmitted;

    @TableField(value = "description")
    @ApiModelProperty("说明")
    private String description;
}
